import request from '@/utils/request'

// 查询湖泊总览列表
export function listLakes(query) {
  return request({
    url: '/hma/lakes/list',
    method: 'get',
    params: query
  })
}

// 查询湖泊总览详细
export function getLakes(lakeId) {
  return request({
    url: '/hma/lakes/' + lakeId,
    method: 'get'
  })
}

// 新增湖泊总览
export function addLakes(data) {
  return request({
    url: '/hma/lakes',
    method: 'post',
    data: data
  })
}

// 修改湖泊总览
export function updateLakes(data) {
  return request({
    url: '/hma/lakes',
    method: 'put',
    data: data
  })
}

// 删除湖泊总览
export function delLakes(lakeId) {
  return request({
    url: '/hma/lakes/' + lakeId,
    method: 'delete'
  })
}
